
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type WechatQrcodeRecordRequest struct {

	Qid string `json:"qid" form:"qid"`

	Uid string `json:"uid" form:"uid"`

	IsFollow string `json:"is_follow" form:"is_follow"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *WechatQrcodeRecordRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *WechatQrcodeRecordRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"qid": "required",

		"uid": "required",

		"is_follow": "required",

		"add_time": "required",

	}
}

func (r *WechatQrcodeRecordRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatQrcodeRecordRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatQrcodeRecordRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
